package com.societyGames.precedenceExercises
{
	import com.societyGames.codeExercise.CodeExercise;
	import com.societyGames.codeExercise.IServiceProvider;
	
	import flash.events.Event;

	public class PrecedenceCodeExercise extends CodeExercise
	{
		protected var _precedenceSimulation:PrecedenceSimulation;
		
		public function PrecedenceCodeExercise()
		{
			this._precedenceSimulation = new PrecedenceSimulation(this._actionQueue);
			this.addChild(this._precedenceSimulation.render);
		}
		
		public override function initialize(xml:XML=null):void
		{	
			super.initialize(xml);
			this._precedenceSimulation.initialize(xml);
		}
		
		public function get precedenceSimulation():PrecedenceSimulation
		{
			return this._precedenceSimulation;
		}
	}
}